package com.tencent.hummingbird.portal.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
@Data
@Accessors(chain = true)
public class EditQuestionVO {
    @NotNull(message = "id不能为空")
    private Integer questionId;
    @NotBlank(message = "标题不能为空")
    @Pattern(regexp = "^.{3,50}$",message = "标题要求3~50个字符")
    private String title;
    @NotEmpty(message = "至少选择一个标签")
    private String[] selectedTags;
    @NotEmpty(message = "至少选择一个讲师")
    private String[] selectedTeachers;
    @NotBlank(message = "内容不能为空")
    private String content;
}
